<template>
  <div class="content" v-html="content"></div>
</template>

<script>
export default {
  name: 'notice',
  data() {
    return {
      content: '',
    }
  },
  created() {
    console.log(this.$route)
    this.content = this.$route.query.id
  },
  /* 获取公告信息 */
  getNoticeLists() {
    this.$http
      .get('article/list/601')
      .then((res) => {
        if (res.data.code === 200) {
          this.noticeLists = res.data.data.list
          console.log(this.noticeLists)
        } else {
          this.$message.error(res.data.message)
        }
      })
      .catch((e) => {
        this.$message.error(e.message)
      })
  },
  /* 获取帮助信息 */
  getHelpLists() {
    this.$http
      .get('article/list/692')
      .then((res) => {
        if (res.data.code === 200) {
          this.helpLists = res.data.data.list
          console.log(this.helpLists)
        } else {
          this.$message.error(res.data.message)
        }
      })
      .catch((e) => {
        this.$message.error(e.message)
      })
  },
}
</script>

<style scoped lang="scss">
.content {
  font-size: 22px;
  font-family: '宋体';
  line-height: 28px;
}
</style>
